/*
 * @Description: 多环境配置文件 https://blog.csdn.net/qq_40792800/article/details/107768736
 * @Author: yiling (315800015@qq.com)
 * @Date: 2021-04-20 21:47:54
 * @LastEditors: liu (1427179517@qq.com)
 * @LastEditTime: 2023-05-08 11:53:17
 * @FilePath: \jiekuan-app\src\config.js
 */
const GLOBALCONFIG = {
  VUE_APP_BASE_API: 'http://124.248.64.74:8085', // api请求地址
  VUE_APP_PREVIEW_PICTURE: 'http://qn.kaifengwenhua.wang/', // 图片域名
  VUE_APP_OUTPUTDIR: process.env.NODE_ENV,
  VUE_APP_TITLE: '当前是开发环境',
  PLATFORMID: 1,
  BUSINESSID: 1,
  ORIGINALID: 'gh_a39f735eb818',
  APPID: 'wxce42babf09b1e9a8',
  TITLE: '小圈   ',
  CUSTOMER_SERVICE_URL: 'https://service.zonmind.com/?m=front&a=chatm&key=7ulj1n87pv&locallang=zh-CN', // 客服地址
  LIVE_VERSION: '1.0.0', // 直播版本号
  LIVE_PROVIDER: 'wx2b03c6e691cd7370', // 直播组件appid
}
// if (process.env.NODE_ENV === 'development') {
//   // 开发环境
// } else if (process.env.NODE_ENV === 'test') {
//   // 测试环境
//   GLOBALCONFIG.VUE_APP_TITLE = '当前是测试环境'
//   GLOBALCONFIG.LIVE = false // 开启直播
// } else if (process.env.NODE_ENV === 'pre') {
//   // GLOBALCONFIG.VUE_APP_BASE_API = 'https://preapi.zonmind.com/api'
//   GLOBALCONFIG.VUE_APP_PREVIEW_PICTURE = 'https://precdn.zonmind.com/'
//   GLOBALCONFIG.VUE_APP_TITLE = '当前是预发布环境'
//   GLOBALCONFIG.PLATFORMID = 1
//   GLOBALCONFIG.BUSINESSID = 1
//   GLOBALCONFIG.LIVE = false
// } else if (process.env.NODE_ENV === 'production') {
//   // 【*******注意*******】APP打包会走这里！20210730
//   // GLOBALCONFIG.VUE_APP_BASE_API = 'https://shopv5.zonmind.com/wxapis'
//   // GLOBALCONFIG.VUE_APP_PREVIEW_PICTURE = 'https://cdn.zonmind.com/'
//   GLOBALCONFIG.VUE_APP_TITLE = '当前是正式环境'
//   GLOBALCONFIG.PLATFORMID = 1
//   GLOBALCONFIG.BUSINESSID = 1
//   // GLOBALCONFIG.LIVE_PROVIDER = 'wx2b03c6e691cd7370'
// }

console.log('process.env.NODE_ENV', process.env.NODE_ENV, 'GLOBALCONFIG', GLOBALCONFIG, Date.now())

// export default GLOBALCONFIG
module.exports = GLOBALCONFIG
